﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<PersonalAlbumModel>" %>
<%@ Import Namespace="PersonalAlbum" %>
<asp:Content ID="loginContent" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        <%=Model.Localize("Login") %></h2>
         <span id="errorMessage"><%=Html.Encode(Model.ErrorMessage)%></span>
    <%= Html.ValidationSummary() %>
    <% using (Html.BeginForm("Login", "Account", FormMethod.Post, new { id = "loginForm", defaultbutton = "btnSubmit" ,defaultfocus="username"}))
       { %>
       <%--Html. AntiForgeryToken() --%>
    <div>
        <table>
            <tr>
                <td>
                    <%=Model.Localize("Username")%>:
                </td>
                <td>
                    <%= Html.TextBox("username")%>
                    <%= Html.ValidationMessage("username")%>
                </td>
            </tr>
            <tr>
                <td>
                    <%=Model.Localize("Password")%>:
                </td>
                <td>
                    <%= Html.Password("password")%>
                    <%= Html.ValidationMessage("password")%>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td>
                    <input type="submit" id="btnSubmit" value="<%=Model.Localize("Login") %>" />
                </td>
            </tr>
        </table>
    </div>
    <% } %>
</asp:Content>
